﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>管理系统</title>
    <link rel="stylesheet" href="/css/public.css"/>
    <link rel="stylesheet" href="/css/style.css"/>
</head>
<body>
<!--头部-->
<header class="publicHeader">
    <h1>管理系统</h1>
    <div class="publicHeaderR">

    </div>
</header>

<!--主体内容-->
<section class="publicMian ">
    <div class="right">
        <div class="search" style="">
            <form style="width: 60%;float: left">
                <span>MT5：</span>
                <input type="text" placeholder="" name="name" value="${name!}"/>
                <select name="status">
                    <option value="">全部</option>
                    <option value="WAIT" <#if (status!'') == "WAIT">selected</#if>>待支付</option>
                    <option value="success" <#if (status!'') == "success">selected</#if>>支付成功</option>
                </select>


                <input type="submit" value="查询"/>
            </form>

            <form action="/sghluo/setMoney" style="width: 40%;float: right" method="post">
                <span>最低支付金额</span>
                <input type="number" name="money" value="${config.value!0}">
                <button type="submit">设置</button>
            </form>
        </div>
        <div style="padding: 8px;text-align: center;">
            <div style="padding: 8px;text-align: center;">
                <a href="/sghluo/index?pageNum=${pageNum -1}&name=${name!}&status=${status!}">上一页</a>
                <a href="/sghluo/index?pageNum=${pageNum +1}&name=${name!}&status=${status!}">下一页</a>
            </div>
        </div>
        <!--账单表格 样式和供应商公用-->
        <table class="providerTable" cellpadding="0" cellspacing="0">
            <tr class="firstTr">
                <th width="20%">订单号</th>
                <th width="10%">MT5</th>
                <th width="10%">开户人名称</th>
                <th width="10%">支付金额</th>
                <th width="10%">下单时间</th>
                <th width="20%">支付IP</th>
                <th width="20%">状态</th>
            </tr>
<#list ordersList as item>
                <tr>
                    <td>${item.id!}</td>
                    <td>${item.name!}</td>
                    <td>${item.user!}</td>
                    <td>${item.money!}</td>
                    <td>${item.addTime?string('yyyy-MM-dd HH:mm:ss')}</td>
                    <td>${item.ip}</td>
                    <td>${item.status?switch('WAIT','待支付','已支付')}</td>
                </tr>
</#list>


        </table>
        <div style="padding: 8px;text-align: center;">
            <a href="/sghluo/index?pageNum=${pageNum -1}&name=${name!}&status=${status!}">上一页</a>
            <a href="/sghluo/index?pageNum=${pageNum +1}&name=${name!}&status=${status!}">下一页</a>
        </div>

    </div>
</section>

</body>
</html>